import request from "@/utils/request";

// 查询图书管会员列表
export function listMembers(query) {
  return request({
    url: "/library/boMembers/list",
    method: "get",
    params: query,
  });
}

// 查询图书管会员详细
export function getMembers(id) {
  return request({
    url: "/library/boMembers/" + id,
    method: "get",
  });
}

// 新增图书管会员
export function addMembers(data) {
  return request({
    url: "/library/boMembers",
    method: "post",
    data: data,
  });
}

// 修改图书管会员
export function updateMembers(data) {
  return request({
    url: "/library/boMembers",
    method: "put",
    data: data,
  });
}

// 删除图书管会员
export function delMembers(id) {
  return request({
    url: "/library/boMembers/" + id,
    method: "delete",
  });
}

// 根据手机号或用户编号查询用户信息
export function searchMember(data) {
  return request({
    url: "/library/boMembers/searchMember",
    method: "get",
    params: data,
  });
}
